package chanfoofoo;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


// @PersistenceCapable(identityType = IdentityType.APPLICATION)
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class StockQuote  {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String stockcode ;
    private String user_id ; 
	public StockQuote(String stockcode) {
		super();
		this.stockcode = stockcode;
	}

	public Long getId() {
		return id;
	}

	public void setStockcode(String stockcode) {
		this.stockcode = stockcode;
	}

	public String getStockcode() {
		return stockcode;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getUser_id() {
		return user_id;
	}
}

